-- GENERATED SPELL FOR [Mudsnout Shaman] --


function spell0_2373(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(939,pUnit)
pUnit:RegisterEvent('Sorts_2373', 3000, 1)
end

function spell1_2373(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20805,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2373', 3000, 1)
end

function Sorts_2373(pUnit, Event)
local choix_sorts_2373 = math.random(0, 1)
if choix_sorts_2373 == 0 then
pUnit:RegisterEvent('spell0_2373', 1, 1)
end
if choix_sorts_2373 == 1 then
pUnit:RegisterEvent('spell1_2373', 1, 1)
end
end

function mob2373_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2373', math.random(1500, 3000), 1)
end

function mob2373_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2373_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2373_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2373, 1, 'mob2373_Action')
RegisterUnitEvent(2373, 2, 'mob2373_Leave')
RegisterUnitEvent(2373, 3, 'mob2373_Kill')
RegisterUnitEvent(2373, 4, 'mob2373_Die')
